<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="../lib/jquery-2.1.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$(function(){
	$('#draggable').draggable();
	$('#droppable').droppable({
		drop: function(event, ui){
			$(this).addClass('ui-state-highlight').find('p').html('How do you know that?');
		}
	});
});
</script>
<style>
#draggable{
	width:100px;
	height: 100px;
	padding: 0.5em;
	float: left;
	margin: 10px 10px 10px 0;
}

#droppable{
	width: 150px;
	height: 150px;
	padding: 0.5em;
	float: left;
	margin: 10px;
}
</style>
</head>
<body>

<div id="draggable" class="ui-widget-content">
	<p>I Want to go there</p>
</div>

<div id="droppable" class="ui-widget-header">
	<p>Is here?</p>
</div>

</body>
</html>